package com.tyylab.message.core.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "tyylab.message.redis")
@Data
public class TyylabMessageRedisProperties {
    Integer maxWait = 1000;
    Integer maxTotal=100;
    Integer maxIdle = 10;
    String host = "localhost";
    Integer port = 6379;
    Integer timeout =1000;
    String password = "";
    Integer database = 3;
    Integer expireSecond = 36000000;
    String channel = "";
    String bus = "bus";
    /** 每个处理器的线程数
     *
     */
    Integer threadsOfEachProcessor =4 ;

    /**
     * 重试超时，秒
     */
    Integer reprocessInterval = 10;
}


/**
 host: 127.0.0.1
 port: 6379
 password: 123456
 timeout: 1000
 maxWait: 1000
 maxTotal: 100
 maxIdle: 10
 expireSecond: 36000000
 database: 1
 */